<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>ServoCtrl: src/ServoCtrl.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">ServoCtrl
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">src/ServoCtrl.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Servo driver module.  
<a href="#details">More...</a></p>

<p><a href="_servo_ctrl_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_servo__t.html">Servo_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="struct_servo__t.html" title="Servo_t specifies port and pulse length for a single servo output.">Servo_t</a> specifies port and pulse length for a single servo output.  <a href="struct_servo__t.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_servo_ctrl__t.html">ServoCtrl_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">servo specification array  <a href="struct_servo_ctrl__t.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr class="memitem:a4259c40a55e489ed25c9f3cbb3be05ab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4259c40a55e489ed25c9f3cbb3be05ab"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_servo_ctrl_8h.html#a4259c40a55e489ed25c9f3cbb3be05ab">MAX_SERVOS</a>&#160;&#160;&#160;8</td></tr>
<tr class="memdesc:a4259c40a55e489ed25c9f3cbb3be05ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">maximum number of servo output signals <br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a722d97fdabdf6a349b0ad02c82da1d23"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_servo_ctrl_8h.html#a722d97fdabdf6a349b0ad02c82da1d23">TIMER32_1_IRQHandler</a> (void)</td></tr>
<tr class="memdesc:a722d97fdabdf6a349b0ad02c82da1d23"><td class="mdescLeft">&#160;</td><td class="mdescRight">TIMER32_1 interrupt handler sub-routine.  <a href="#a722d97fdabdf6a349b0ad02c82da1d23"></a><br/></td></tr>
<tr class="memitem:ac1ebe6246e84e79a998a62a6cb921387"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_servo_ctrl_8h.html#ac1ebe6246e84e79a998a62a6cb921387">initServoCtrl</a> (void)</td></tr>
<tr class="memdesc:ac1ebe6246e84e79a998a62a6cb921387"><td class="mdescLeft">&#160;</td><td class="mdescRight">set up TIMER32_1 parameters and IRQ  <a href="#ac1ebe6246e84e79a998a62a6cb921387"></a><br/></td></tr>
<tr class="memitem:a83b604c1849bad9f51471a1864733974"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_servo_ctrl_8h.html#a83b604c1849bad9f51471a1864733974">setServo</a> (uint8_t index, struct <a class="el" href="struct_servo__t.html">Servo_t</a> servo)</td></tr>
<tr class="memdesc:a83b604c1849bad9f51471a1864733974"><td class="mdescLeft">&#160;</td><td class="mdescRight">add servo channel description  <a href="#a83b604c1849bad9f51471a1864733974"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a84b5164509eac993d335380156d11aa9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84b5164509eac993d335380156d11aa9"></a>
struct <a class="el" href="struct_servo_ctrl__t.html">ServoCtrl_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ServoArray</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Servo driver module. </p>
<dl class="section date"><dt>Date:</dt><dd>22.11.2011 </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>cord</dd></dl>
<p>ServoCtrl uses TIMER2 to process multiple servo outputs </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="ac1ebe6246e84e79a998a62a6cb921387"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_servo_ctrl_8h.html#ac1ebe6246e84e79a998a62a6cb921387">initServoCtrl</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>set up TIMER32_1 parameters and IRQ </p>
<dl class="section return"><dt>Returns:</dt><dd>None </dd></dl>

</div>
</div>
<a class="anchor" id="a83b604c1849bad9f51471a1864733974"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="_servo_ctrl_8h.html#a83b604c1849bad9f51471a1864733974">setServo</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="struct_servo__t.html">Servo_t</a>&#160;</td>
          <td class="paramname"><em>servo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>add servo channel description </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>servo index (1..MAX_SERVOS) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">servo</td><td>servo description </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>0, 1 for correct servo installation </dd></dl>

</div>
</div>
<a class="anchor" id="a722d97fdabdf6a349b0ad02c82da1d23"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_servo_ctrl_8h.html#a722d97fdabdf6a349b0ad02c82da1d23">TIMER32_1_IRQHandler</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>TIMER32_1 interrupt handler sub-routine. </p>
<dl class="section return"><dt>Returns:</dt><dd>None </dd></dl>

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 21 2012 11:14:53 for ServoCtrl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
